﻿using SqlSugar;

namespace Blog.Models.Entitys
{
    /// <summary>
    /// 系统日志
    /// </summary>
    [SugarTable(TableDescription = "系统日志")]
    public class SysOperLog : BaseEntity
    {
        [SugarColumn(ColumnDescription = "业务类型,0=其它,1=新增,2=修改,3=删除,4=授权,5=导出,6=导入,7=强退,8=生成代码,9=清空数据")]
        public int? BusinessType { get; set; }

        [SugarColumn(ColumnDescription = "方法名称", Length = 50)]
        public string? Method { get; set; }

        [SugarColumn(ColumnDescription = "请求方式", Length = 5)]
        public string? RequestMethod { get; set; }

        [SugarColumn(ColumnDescription = "操作人员", Length = 50)]
        public string? OperName { get; set; }

        [SugarColumn(ColumnDescription = "请求地址", Length = 200)]
        public string? OperUrl { get; set; }

        [SugarColumn(ColumnDescription = "主机地址", Length = 30)]
        public string? OperIp { get; set; }

        [SugarColumn(ColumnDescription = "请求参数", Length = 2000)]
        public string? OperParam { get; set; }

        [SugarColumn(ColumnDescription = "返回参数", Length = 2000)]
        public string? JsonResult { get; set; }

        [SugarColumn(ColumnDescription = "错误消息", Length = 2000)]
        public string? ErrorMsg { get; set; }

        [SugarColumn(ColumnDescription ="操作状态(0 正常  1 异常")]
        public int? Status { get; set; }

    }
}
